﻿using System;
using System.Collections.Generic;
using Newtonsoft.Json;
using Pay.TO;

namespace Pay.DTO {
	/// <summary>
	/// 商户进件请求
	/// </summary>
	[JsonObject(MemberSerialization.OptOut)]
	public class merchant_register_model : head_req {
		public merchant_register_model() {
			settle_type = "T0";
			pay_code = "UNIONPAY";
		}
		/// <summary>
		/// 通道商户号
		/// </summary>
		public string reg_merchant_no { get; set; }
		/// <summary>
		/// 是否可以进件多次
		/// </summary>
		public bool is_more { get; set; }
		/// <summary>
		/// 为HX做此字段，云端的商户号就以此准
		/// </summary>
		public string open_id { get; set; }
		/// <summary>
		/// 注册账户－手机号码--HX有的需要
		/// </summary>
		public string reg_mobile { get; set; }
		/// <summary>
		/// 是否补件
		/// </summary>
		public bool is_patch { get; set; }

		/// <summary>
		/// 卡类型：0个人，1企业
		/// </summary>
		public int busi_type { get; set; }
		/// <summary>
		/// 银行编号
		/// </summary>
		public string bank_code { get; set; }
		/// <summary>
		/// 银行名称
		/// </summary>
		public string bank_name { get; set; }
		/// <summary>
		/// 支行编号
		/// </summary>
		public string branch_code { get; set; }
		/// <summary>
		/// 支行名称
		/// </summary>
		public string branch_name { get; set; }
		/// <summary>
		/// 户名
		/// </summary>
		public string account_name { get; set; }
		/// <summary>
		/// 账号
		/// </summary>
		public string account_no { get; set; }
		/// <summary>
		/// 身份证
		/// </summary>
		public string id_card { get; set; }
		/// <summary>
		/// 预留手机号码
		/// </summary>
		public string mobile { get; set; }
		/// <summary>
		/// 手持银行卡
		/// </summary>
		public string card_handheld { get; set; }
		/// <summary>
		/// 县区id
		/// </summary>
		public long region_id { get; set; }

		/// <summary>
		/// 通道
		/// </summary>
		public PayChannel pay_channel { get; set; }
		public string pay_code { get; set; }
		/// <summary>
		/// 结算类型:T0,T1，默认是T0
		/// </summary>
		public string settle_type { get; set; }
		/// <summary>
		/// 费率：如0.0055，只能三或四位小数
		/// </summary>
		public decimal fee { get; set; }
		/// <summary>
		/// 结算费:分
		/// </summary>
		public string settle { get; set; }
	}
    public class loginmodel {
        public string msg { get; set; }
        public merchant_dto merchant { get; set; }
    }
}
